﻿<!--#include file="utf-8.asp"-->
<!--#include file="sql.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="config.asp" -->
<%
'######################################
' 安科外贸网站管理系统中英文双语版
' anke Enterprise Web Site Management System
' 官方网站：http://www.shejifang.org
' 联系QQ：357052954
' 淘宝店： http://shejifang.taobao.com
'######################################
%>
<%
dim id,rs,exec
id = request.querystring("id")
If id="" Then     
server_v40=Request.ServerVariables("QUERY_STRING")    
id=Int(replace(replace(server_v40,"/",""),".html",""))  
End If 

if id = "" or not isnumeric(id) then
response.write "<script>alert('非法操作');history.back();</script>"
response.end
end if
 
exec="select * from news where id="&id 
set rs=server.createobject("adodb.recordset") 
rs.open exec,conn,1,1

if rs.eof then
rs.close
set rs = nothing
conn.close
set conn = nothing
response.write "<script>alert('不存在此数据');history.back();</script>"
response.end
end if  
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=rs("title")%></title>
<meta name="keywords" content="<%=rs("keyword")%>" />
<meta name="description" content="<%=rs("description2")%>" />
<link href="images/style.css" type="text/css" rel="stylesheet" />
</head>
<body>
<!--#include file="header.asp" -->
<table width="913" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td width="193" valign="top">
    <table width="193" border="0"  cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top">
        <!--左侧导航-->
        <!--#include file="left3.asp"-->
        </td>
      </tr>
      <tr>
        <td width="193" height="324" align="center" valign="top">
        <!--热点产品-->
        <!--#include file="hot.asp"-->
        </td>
      </tr>
    </table></td>
    <td width="720" valign="top">
    
    <table width="720" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td height="34" colspan="2" align="right" valign="middle" background="images/title.jpg">
        <span style="float:left; padding:4px 0px 0px 25px; font-weight:bold; font-size:14px; color:#333333;">新闻中心</span>
        <a href="main.asp">网站首页</a> > <a href="news.asp">新闻中心</a>
        </td>
	</tr>
	<tr>
		<td height="113" colspan="2">
			<img src="images/about_02.jpg" width="720" height="113"></td>
	</tr>
	<tr>
		<td width="17" height="30">
			<img src="images/about_03.jpg" width="17" height="30"></td>
		<td width="703" height="30" style="font-weight:bold;  font-size:13px; color:#333333; padding-top:2px;">新闻内容</td>
	</tr>
	<tr>
		<td colspan="2" valign="top">
        <!--显示新闻-->
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="100%" colspan="2"><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#CCCCCC">
          <tr>
            <td bgcolor="#FFFFFF"><div align="center" style="font-size:16px; color:#387406; font-weight:bold;"><%=rs("title")%></div></td>
          </tr>
          <tr>
            <td bgcolor="#FFFFFF"><div style="text-align:right; color:#666666">
<%
sql = "UPDATE news SET hits = hits + 1 WHERE id ="&id
conn.execute(sql)
%>
点击:<%=rs("hits")%> 日期:<%=rs("data")%></div></td>
          </tr>
          <tr>
            <td bgcolor="#FFFFFF"><div style="line-height:20px; color:#333333; margin-left:8px;"><%=rs("body")%></div></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2"><div>
          <div align="right">【 <a href="javascript:self.print()">打印此页 </a>】 【 <a href="javascript:window.close()">关闭窗口 </a>】</div>
        </div></td>
      </tr> 
    </table>
        
        </td>
	</tr>
</table>
    
    </td>
  </tr>
</table>
<!--#include file="foot.asp" -->
</body>
</html>
<%
rs.close
set rs = nothing
conn.close
set conn = nothing
%>